﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Common
{
    public partial class AddVisitDialog : UserControl, IAddVisitDialog
    {
        public AddVisitDialog()
        {
            InitializeComponent();
            new AddVisitDialogPresenter(this);

        }

        private void buyerComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            SelectedBuyer(null, null);
        }

        private void buyPointComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            SelectedBuyPoint(null, null);
        }

        #region IAddVisitDialog Members

        public object DataSourceBuyPoint
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string AdressBuyPoint
        {
            set { throw new NotImplementedException(); }
        }

        public object CurrentBuyPoint
        {
            get { throw new NotImplementedException(); }
        }

        public event EventHandler<EventArgs> SelectedBuyer;

        public event EventHandler<EventArgs> SelectedBuyPoint;


        public object DataSource
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object Current
        {
            get { throw new NotImplementedException(); }
        }

        #endregion
    }
}
